﻿<Window x:Class="Refugees.Views.Windows.Authorization"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Refugees.Views.Windows"
        mc:Ignorable="d"
         Title="Авторизация" Height="550" Width="800">
    <Grid>
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF819B3D"/>
                <GradientStop Color="#FFA3DAD8" Offset="0.626"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="0.4*"/>
            <RowDefinition Height="0.2*"/>
            <RowDefinition Height="0.2*"/>
            <RowDefinition Height="0.1*"/>
            <RowDefinition Height="0.2*"/>
            <RowDefinition Height="0.2*"/>
        </Grid.RowDefinitions>

        <Label Content="Авторизация" 
               HorizontalAlignment="Center" VerticalAlignment="Center"
                   Foreground="Black"
                   FontSize="36"
                   Grid.Column="1" FontStyle="Italic" FontWeight="Bold" FontFamily="Segoe Script"/>

        <GroupBox Grid.Row="1" Header="Логин"
                   FontSize="22" FontStyle="Italic">
            <TextBox Name="Login"
                 Grid.Column="1" Style="{DynamicResource Login}" Grid.Row="1">
            </TextBox>
        </GroupBox>

        <GroupBox Grid.Row="2" Header="Пароль" 
                   FontSize="22" FontStyle="Italic" 
                  >
            <PasswordBox Grid.Row="2" x:Name="Password"  Style="{DynamicResource Password}">
                <PasswordBox.Resources>
                    <Style TargetType="Border">
                        <Setter Property="CornerRadius" Value="20"/>
                    </Style>
                </PasswordBox.Resources>
            </PasswordBox>
        </GroupBox>


        <Grid  Grid.Row="4" Grid.Column="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Button Grid.Column="0"  Content="Войти"  Click="LoginClick" VerticalAlignment="Center"  HorizontalAlignment="Center" Style="{DynamicResource Vhod}"/>
            <Button Grid.Column="1" Content="Регистрация" Click="Registration" VerticalAlignment="Center"  HorizontalAlignment="Center" Style="{DynamicResource Vhod}"/>
        </Grid>

    </Grid>
</Window>
